package com.evolution.model;

public class Space {

	public int x;
	public int y;
	public Food food;
	
	public Space(int x,int y){
		this.x = x;
		this.y = y;
		food = null;
	}
	
	public void growFood(){
		this.food = new Food(10);
	}
	
	public void consumeFood(){
		this.food = null;
	}
	
	public boolean hasFood(){
		return food != null;
	}
}
